for i in .wma; do mplayer -vo null -vc dummy -ao pcm:waveheader:file="$i.wav" "$i"; done rename .wma.wav *wav